package com.study.scala.oop

class Student(name: String, val age: Int) extends Person(name) {
  var sex = "nv";

  def getName(): String = {
    return this.name;
  }

  override def toString(): String = {
    return "";

  }
}

object OOPTest {
  def main(args: Array[String]): Unit = {
    val stu = new Student("zsc", 11)
    println(stu.getName);
    println(stu.age);
    stu.sex = "nan"
    println(stu.sex)
  }
}